<include file="Public:newhead"/>
<script type="text/javascript" src="{:STATICS}/artDialog/jquery.artDialog.js?skin=default"></script>
<script type="text/javascript" src="{:STATICS}/artDialog/plugins/iframeTools.js"></script>
<script type="text/javascript" src="{:STATICS}/qiniu.js"></script>
<script type="text/javascript" src="{:STATICS}/holder.min.js"></script>
<div class="container">
	<form class="form-horizontal" method="post" action="">
		<input type="hidden" name="keyword" value="{$infoType.keyword}" />
		<input type="hidden" name="infotype" value="{$infoType.type}" />
		<input type="hidden" name="token" value="{$token}" />
		<input type="hidden" id="id" value="{$set.id}" name="id" />
		<div class="form-group">
			<label class="col-sm-2 control-label wm-control-label" >回复关键字</label>
			<div class="col-md-4">
				<input type="text" name="keyword" value="{$infoType.keyword}" class="form-control" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label wm-control-label" >回复标题</label>
			<div class="col-md-4">
				<input type="text" name="title" value="{$set.title}" class="form-control" />
			</div>
		</div>
		<div class="form-group">
			<label for="picurl" class="col-sm-2 control-label wm-control-label">回复图片</label>
			<div class="col-sm-6" >
				<input type="hidden" name="picurl" id="picurl" value="{$set.picurl}" class="form-control" />
				<img id="picurlHolder" style="width:216px;height:120px;" class="img-rounded" <if condition="$set['picurl'] eq ''">data-src="$holder.js/216x120/gray/text:720*400"</if> src="{$set.picurl}"/>
				<div class="btn-group" style="vertical-align:bottom;">
					<span class="btn btn-xs btn-primary" onclick="selectAsset('picurl',720,400)">
						<span class="glyphicon glyphicon-cloud-upload"></span>选择
					</span>
					<span class="btn btn-primary btn-xs" onclick="previewImg('picurl')">
						<span class="glyphicon glyphicon-picture"></span>预览
					</span>
					&nbsp;&nbsp;建议尺寸:720*400
				</div>
				
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label wm-control-label" >内容介绍</label>
			<div class="col-md-4">
				<textarea style="height:75px" name="info" id="info" class="form-control">{$set.info}</textarea>
			</div>
		</div>
		<div class="form-group">
			<div class="col-md-4 col-sm-offset-2">
				<button type="submit" name="button" class="btn btn-success">保存</button>
			</div>
		</div>
	</form>
</div>
</body>
</html>